using AutoMapper;
using FytSoa.Application.Cms;
using FytSoa.Application.Sys;
using FytSoa.Domain.Cms;
using FytSoa.Domain.Sys;

namespace FytSoa.Application.AutoMapper
{
    /// <summary>
    /// AutoMapper 加载配置文件
    /// </summary>
    public class MappingConfigProfile : Profile
    {
        public MappingConfigProfile() {

            CreateMap<SysAdmin, SysAdminDto>((MemberList.None)).ReverseMap();
            CreateMap<SysAdmin, LoginAdminDto>((MemberList.None)).ReverseMap();
            CreateMap<SysAuthority, SysAuthorityDto>((MemberList.None)).ReverseMap();
            CreateMap<SysCity, SysCityDto>((MemberList.None)).ReverseMap();
            CreateMap<SysCode, SysCodeDto>((MemberList.None)).ReverseMap();
            CreateMap<SysCodetype, SysCodetypeDto>((MemberList.None)).ReverseMap();
            CreateMap<SysFileColumn, SysFileColumnDto>((MemberList.None)).ReverseMap();
            CreateMap<SysFileInfo, SysFileInfoDto>((MemberList.None)).ReverseMap();
            CreateMap<SysLog, SysLogDto>((MemberList.None)).ReverseMap();
            CreateMap<SysMenu, SysMenuDto>((MemberList.None)).ReverseMap();
            CreateMap<SysOrganize, SysOrganizeDto>((MemberList.None)).ReverseMap();
            CreateMap<SysPost, SysPostDto>((MemberList.None)).ReverseMap();
            CreateMap<SysRole, SysRoleDto>((MemberList.None)).ReverseMap();

            CreateMap<CmsAdvColumn, CmsAdvColumnDto>((MemberList.None)).ReverseMap();
            CreateMap<CmsAdvInfo, CmsAdvInfoDto>((MemberList.None)).ReverseMap();
            CreateMap<CmsArticle, CmsArticleDto>((MemberList.None)).ReverseMap();
            CreateMap<CmsColumn, CmsColumnDto>((MemberList.None)).ReverseMap();
            CreateMap<CmsMessage, CmsMessageDto>((MemberList.None)).ReverseMap();
            CreateMap<CmsSite, CmsSiteDto>((MemberList.None)).ReverseMap();
            CreateMap<CmsTemplate, CmsTemplateDto>((MemberList.None)).ReverseMap();
        }
    }
}